#!/usr/bin python
# 参考了 Summer 师傅的Seeyon EXp脚本，把传参方式单独写出，payload文件需要的时候直接调用，节省代码
import requests
import sys

header = {
                'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36',
                'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
                'Accept-Encoding': 'gzip, deflate',
                'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
                'Connection': 'close'
            }

def get(url,path):
    url = url + path
    try:
        res = requests.get(url=url,timeout=3,verify=False,headers=header)
        return res
    except Exception as e:
        pass
    except KeyboardInterrupt:
        sys.exit()

def post(url,path,data):
    try:
        res = requests.post(url=url+path,timeout=3,data=data,verify=False,headers=header)
        return res
    except Exception as e:
        pass
    except KeyboardInterrupt:
        sys.exit()

def checksuc(target,name,payload):
    print("[+] {} {} Check Success, payload: {}\n".format(target,name,payload))